package com.mvp.shq.washer.ui.withdraw;

import com.mvp.shq.washer.entity.BasicInfo;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.http.Api;
import com.mvp.shq.washer.http.RxSchedulers;

import java.math.BigDecimal;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/9/5.
 */

public class Model implements WithDrawConstract.Model {
    @Override
    public Observable<BaseResult<String>> withDraw(String token, String userId, BigDecimal money, String realName, String account, String sign) {
        return Api.getInstance().service
                .withDraw(token,userId,money,realName,account,sign)
                .compose(RxSchedulers.io_main());
    }

}
